Java if Statement

56

java if or -

if (str != null && !str.isEmpty()) {
  doSomethingWith(str.charAt(0));
}

Comments

Submit
0 Comments